package Pet.Management.repository;

import Pet.Management.domain.entity.PetDemand;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PetDemandRepository extends JpaRepository<PetDemand, Long>, JpaSpecificationExecutor<PetDemand> {
    
    List<PetDemand> findByUserId(Long userId);
    
    List<PetDemand> findByPetTypeAndPetGender(String petType, String petGender);
    
    List<PetDemand> findByPetNameContaining(String petName);
} 